<?php

namespace backend\components;

use Yii;

class MyBehavior extends \yii\base\ActionFilter {


    public function beforeAction($action) {
        var_dump('111');
        return true;
    }

    public function isGuest(){
        return Yii::$app->user->isGuest;
    }


}

?>
